import request from '@/utils/request'

/**
 * 获取店铺申请小程序码
 * @param data
 */
export function getEnterpriseShopApplyCode(data) {
  return request({
    url: '/user/enterpriseShopApply/getEnterpriseShopApplyCode',
    method: 'post',
    params: data
  })
}

export function getEnterpriseShopNum(data) {
  return request({
    url: '/user/enterpriseShopApply/getEnterpriseShopNum',
    method: 'get',
    params: data
  })
}

// 获取用户列表
export function pagingEnterpriseShopApply(data) {
  return request({
    url: '/user/enterpriseShopApply/paging',
    method: 'get',
    params: data
  })
}

export function statShopApplyByStatus(data) {
  return request({
    url: '/user/enterpriseShopApply/statShopApplyByStatus',
    method: 'get',
    params: data
  })
}

/**
 * 更新状态
 * @param data
 */
export function updateStatus(data) {
  return request({
    url: '/user/enterpriseShopApply/updateStatus',
    method: 'get',
    params: data
  })
}
/**
 * 批量更新状态
 * @param data
 */
export function batchUpdateStatus(data) {
  return request({
    url: '/user/enterpriseShopApply/batchUpdateStatus',
    method: 'post',
    data: data
  })
}

/**
 * 更新自动审核提示
 */
export function updateAutoApproveHint(query) {
  return request({
    url: '/user/enterpriseShopApply/updateAutoApproveHint',
    method: 'get',
    params: query
  })
}

/**
 * 更新云店申请海报
 */
export function updateShopPoster(query) {
  return request({
    url: '/user/enterpriseShopApply/updateShopPoster',
    method: 'get',
    params: query
  })
}
